package com.liqing.movecomment.dao;
import com.liqing.movecomment.entity.Actor;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liqing.movecomment.entity.Tag;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (Tag)表数据库访问层
 *
 * @author makejava
 * @since 2023-05-08 02:01:50
 */
 @Mapper
public interface TagDao extends BaseMapper<Tag> {


     @Select("SELECT * from tag  where id in (SELECT tag_id from move_tag where move_id = #{id}) ")
    List<Tag> selectTagListByMoveId(Integer id);
}

